package backend.project.gym_management.base.response;

import lombok.AllArgsConstructor;
import lombok.Getter;
import lombok.NoArgsConstructor;

@Getter
@NoArgsConstructor
@AllArgsConstructor
public enum StatusCode {
    OPERATION_SUCCESS(2001, "操作成功"),
    OPERATION_FAILED(2002, "操作失败"),
    USERNAME_EXISTS(1002, "用户名被占用"),
    USERNAME_PASSWORD_ERROR(1001, "用户名或密码错误"),
    NOT_LOGIN(1000, "未登录"),
    VALIDATED_ERROR(3000, "参数校验失败"),
    INVALID_PARAMETER(3001, "参数错误"),
    UNKNOW_ERROR(9999, "未知错误");
    private Integer state;
    private String message;
}
